package com.mhc.haval.service;

import com.mhc.haval.bo.DepartmentBO;
import com.mhc.haval.exception.HavalCommonException;
import com.mhc.haval.vo.DepartmentInfoVO;
import com.subaru.common.entity.BizResult;

import java.util.List;

/**
 * Created by HMJ on 2017/8/15.
 */
public interface DepartmentService {

    /**新增部门信息**/
    Boolean addDeptInfo(DepartmentBO departmentBO) throws HavalCommonException;

    /**
     * 逻辑删除部门
     * @param deptId
     */
    BizResult delDept(Long deptId);

    /**修改部门信息**/
    Boolean editDeptInfo(DepartmentBO departmentBO) throws HavalCommonException;

    /**获取部门列表**/
    List<DepartmentInfoVO> selectByDeptList(Long parentDeptId, String companyNo) throws HavalCommonException;

    /**获取部门详细信息**/
    DepartmentInfoVO queryByInfo(Long deptId) throws HavalCommonException;

}
